<template>
  <div class="userFeedReplyDetail">
    <div class="feedTable">
      <el-form :model="feedTable"
               ref="feedTable"
               label-width="120px"
               class="demo-ruleForm"
               size="mini"
               :disabled="true">
        <el-form-item  label="用户名称" prop="userName">
          <el-input  v-model="feedTable.userName"></el-input>
        </el-form-item>
        <el-form-item label="电话号码" prop="userPhone">
          <el-input v-model="feedTable.userPhone"></el-input>
        </el-form-item>
        <el-form-item label="反馈问题" prop="feedQuestion">
          <el-input v-model="feedTable.feedQuestion"></el-input>
        </el-form-item>
        <el-form-item label="反馈描述" prop="feedDescription">
          <el-input type="textarea"
                    v-model="feedTable.feedDescription"
                    :rows="5"></el-input>
        </el-form-item>
        <el-form-item label="回   复" prop="replyContent">
          <el-input type="textarea"
                    v-model="feedTable.replyContent"
                    :rows="5"></el-input>
        </el-form-item>
        <el-form-item label="回复时间" prop="replyTime">
          <el-input v-model="feedTable.replyTime">
          </el-input>
        </el-form-item>

      </el-form>
    </div>
  </div>
</template>

<script>
import {getFeedbackById, getFeedByReplyId} from "@/api/allApi";
import moment from "moment/moment";

export default {
  name: "FeedReplyDetail",
  data() {
    return {
      feedTable:[],
    }
  },
  methods:{
    getFeedByReplyId(){
      getFeedByReplyId(this.$route.params.replyId).then(res=>{
        this.feedTable = res.data.data
        if (this.feedTable.replyTime) {
          // 修改表单时间
          this.feedTable.replyTime = moment(this.feedTable.replyTime).format("YYYY-MM-DD HH:mm:ss")
        }
      })
    }
  },
  mounted() {
    this.getFeedByReplyId()
  }
}
</script>

<style scoped>

</style>